<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>

<script>
    /* 需求：所有汉字 */
    console.log('hello你好 china中国 hh哈'.match(/(\W)+/g));//['你好 ', ' 中国 ', '哈']

    /* 需求：识别以下正则表达式 */
    let reg1 = /^\w+@\w+\.\w+$/;
    let reg2 = /^((\d{3,4})|\d{3,4}-)?\d{7,8}$/;
    let reg3 = /^(0?[1-9]|1[0-2])$/;
    let reg4 = /^((0?[1-9])|((1|2)[0-9])|30|31)$/;
    let reg5 = /(\d{1,3}\.){3}\d{1,3}/;
</script>
</html>